package cn.vivi.design.decorator;

public class Client {

    public static void main(String[] args) {
        FastFood rice = new FriedRice();
        System.out.println(rice.getDesc() + " " + rice.cost());
        rice = new Egg(rice);
        System.out.println(rice.getDesc() + " " + rice.cost());
        rice = new Bacon(rice);
        System.out.println(rice.getDesc() + " " + rice.cost());
    }

}
